<!--
/**
 * moOde audio player (C) 2014 Tim Curtis
 * http://moodeaudio.org
 *
 * This Program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3, or (at your option)
 * any later version.
 *
 * This Program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * 汉化：Androidnews
 */
-->
<div id="container">
<div class="container">
	<h1 class="sys-config">系统</h1>

	<form class="form-horizontal" method="post">
		<div class="control-group">
			<legend>软件更新</legend>
			<label class="control-label">通知</label>
			<div class="controls">
				<div class="toggle">
					<label class="toggle-radio" for="toggle-updater-auto-check-2">开</label>$_select[updater_auto_check_on]
					<label class="toggle-radio" for="toggle-updater-auto-check-1">关</label>$_select[updater_auto_check_off]
				</div>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_updater_auto_check" value="novalue">设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-update-updater-auto-check" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-update-updater-auto-check" class="config-help-info">
					如果在启动期间检测到可用的软件更新，则在播放视图中显示通知标记。
				</span>
			</div>

			<label class="control-label">可用</label>
			<div class="controls">
				<button class="btn btn-medium btn-primary config-btn btn-submit" type="submit" name="checkfor_update" value="novalue">检查</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-checkfor-update" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-checkfor-update" class="config-help-info">
					检查可用的软件更新。
				</span>
				$_available_upd
		    </div>

			<label class="control-label">状态</label>
			<div class="controls">
				<a href="sys-status.php"><button class="btn btn-medium btn-primary config-btn">查看</button></a>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-view-status" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-view-status" class="config-help-info">
					查看活动就地更新的进度，或者如果以前应用过更新，则查看更新日志。
				</span>
		    </div>
		</div>

		<div class="control-group">
			<legend>常规</legend>
			<label class="control-label" for="timezone">时区</label>
			<div class="controls">
				<select id="timezone" class="config-select-large" name="timezone">
					$_timezone[timezone]
				</select>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_time_zone" value="novalue">设置</button>
			</div>

            <label class="control-label" for="hostname">主机或玩家名称</label>
            <div class="controls">
                <input class="config-input-large" type="text" pattern="[A-Za-z0-9\-]{3,63}" id="hostname" name="hostname" value="$_select[hostname]" required>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_host_name" value="novalue">设置</button>
				<span class="config-help-info">
					长度3-63个字符，允许字母数字和连字符。这是将出现在网络上的名称。
				</span>
            </div>

            <label class="control-label" for="keyboard">键盘布局</label>
            <div class="controls">
                <select id="keyboard" class="config-select-large" name="keyboard">
                    $_keyboard[keyboard]
                </select>
                <button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_keyboard" value="novalue">设置</button>
            </div>

            <label class="control-label" for="browsertitle">浏览器标题</label>
            <div class="controls">
                <input class="config-input-large" type="text" id="browsertitle" name="browsertitle" value="$_select[browsertitle]" required>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_browser_title" value="novalue">设置</button>
            </div>
		</div>

		<div class="control-group">
			<legend>启动选项</legend>
			<label class="control-label" for="cpugov">CPU调速器</label>
			<div class="controls">
				<select id="cpugov" class="config-select-large" name="cpugov">
					$_select[cpugov]
				</select>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_cpugov" value="novalue">设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-cpugov" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-cpugov" class="config-help-info">
					<b>On-demand:</b> 根据负载将CPU频率从最小扩展到最大。<br>
					<b>Performance:</b> 以最高频率运行CPU。
				</span>
			</div>

			<label class="control-label" for="usb-auto-mounter">USB自动挂载</label>
			<div class="controls">
				<select id="usb-auto-mounter" class="config-select-large" name="usb_auto_mounter">
					$_select[usb_auto_mounter]
				</select>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_usb_auto_mounter" value="novalue">设置</button>
				<span class="config-help-info">
					注意: 为较旧的ARMv6平台选择Devmon(Pi-1B，Pi-零/W)。
				</span>
			</div>

			<div class="$_usbboot_hide">
				<label class="control-label">USB启动(Pi-3*)</label>
				<div class="controls">
					<a href="#enable-usbboot" data-toggle="modal"><button class="btn btn-primary btn-medium config-btn" $_usbboot_btn_disable>启用</button></a>
					<a aria-label="Help" class="config-info-toggle" data-cmd="info-usb-boot" href="#notarget"><i class="fas fa-info-circle"></i></a>
					<span id="info-usb-boot" class="config-help-info config-help-no-margin">
						对于Pi-3B、3B+和3A+,此选项对OTP内存进行编程，以允许从USB驱动器引导。OTP更新后，系统可以从uSD卡或USB驱动器启动。
	                </span>
					<span class="config-help-static">
						$_usbboot_msg
					</span>
				</div>
			</div>

			<div class="config-horiz-rule"></div>

			<div class="$_wifibt_hide">
				<label class="control-label">WiFi</label>
				<div class="controls">
					<div class="toggle">
						<label class="toggle-radio" for="toggle-p3wifi-2">开</label>$_select[p3wifi_on]
						<label class="toggle-radio" for="toggle-p3wifi-1">关</label>$_select[p3wifi_off]
					</div>
					<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_p3wifi" value="novalue">设置</button>
					<a aria-label="Help" class="config-info-toggle" data-cmd="info-p3wifi" href="#notarget"><i class="fas fa-info-circle"></i></a>
					<span id="info-p3wifi" class="config-help-info">
						集成适配器出现在Pi-4、Pi-3和Pi-Zero W型号上。
                    </span>
				</div>

				<label class="control-label">蓝牙</label>
				<div class="controls">
					<div class="toggle">
						<label class="toggle-radio" for="toggle-p3bt-2">开</label>$_select[p3bt_on]
						<label class="toggle-radio" for="toggle-p3bt-1">关</label>$_select[p3bt_off]
					</div>
					<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_p3bt" value="novalue">设置</button>
					<a aria-label="Help" class="config-info-toggle" data-cmd="info-p3bt" href="#notarget"><i class="fas fa-info-circle"></i></a>
					<span id="info-p3bt" class="config-help-info">
						集成适配器出现在Pi-4、Pi-3和Pi-Zero W型号上。
                    </span>
				</div>
			</div>

			<label class="control-label">HDMI端口</label>
			<div class="controls">
				<div class="toggle">
					<label class="toggle-radio" for="toggle-hdmiport-2">开</label>$_select[hdmiport_on]
					<label class="toggle-radio" for="toggle-hdmiport-1">关</label>$_select[hdmiport_off]
				</div>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_hdmiport" value="novalue">设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-hdmiport" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-hdmiport" class="config-help-info">
					保持HDMI端口打开会使用+25 mA电流，并延长启动时间。
                </span>
			</div>

			<label class="control-label">LED0 (活动)</label>
			<div class="controls">
				<div class="toggle">
					<label class="toggle-radio" for="toggle-actled-2">开</label>$_select[actled_on]
					<label class="toggle-radio" for="toggle-actled-1">关</label>$_select[actled_off]
				</div>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_actled" value="novalue">设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-actled" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-actled" class="config-help-info">
					LED0默认触发是SDCard (mmc0)活动。
                </span>
			</div>

			<div class="$_pwrled_hide">
				<label class="control-label">LED1 (电源)</label>
				<div class="controls">
					<div class="toggle">
						<label class="toggle-radio" for="toggle-pwrled-2">开</label>$_select[pwrled_on]
						<label class="toggle-radio" for="toggle-pwrled-1">关</label>$_select[pwrled_off]
					</div>
					<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_pwrled" value="novalue">设置</button>
					<a aria-label="Help" class="config-info-toggle" data-cmd="info-pwrled" href="#notarget"><i class="fas fa-info-circle"></i></a>
					<span id="info-pwrled" class="config-help-info">
						LED1默认触发为电源默认开启。
                    </span>
				</div>
			</div>

			<div class="config-horiz-rule"></div>

			<label class="control-label" for="ipaddr-timeout">地址超时</label>
			<div class="controls">
				<select id="ipaddr-timeout" class="config-select-large" name="ipaddr_timeout">
					$_select[ipaddr_timeout]
				</select>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_ipaddr_timeout" value="novalue">设置</button>
				<span class="config-help-static">
					在启动过程中，等待指定的秒数，以便将IP地址分配给适配器。
					如果WiFi或以太网适配器都没有分配IP地址，将启动AP模式。
				</span>
			</div>

			<label class="control-label">等待以太网</label>
			<div class="controls">
				<div class="toggle">
					<label class="toggle-radio" for="toggle-eth0chk-2">开</label>$_select[eth0chk_on]
					<label class="toggle-radio" for="toggle-eth0chk-1">关</label>$_select[eth0chk_off]
				</div>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_eth0chk" value="novalue">设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-eth0chk" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-eth0chk" class="config-help-info">
					等待“地址超时”秒钟，为以太网适配器分配地址。
					如果设置为否，地址检查将被跳过，启动时间将减少。
				</span>
			</div>

			<!-- TEST -->
			<div class="$_feat_https">
				<div class="config-horiz-rule"></div>
				<label class="control-label">仅HTTPS模式</label>
				<div class="controls">
					<div class="toggle">
						<label class="toggle-radio" for="toggle-nginx-https-only-2">开</label>$_select[nginx_https_only_on]
						<label class="toggle-radio" for="toggle-nginx-https-only-1">关</label>$_select[nginx_https_only_off]
					</div>
					<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_nginx_https_only" value="novalue">设置</button>
					<span class="config-help-static">
						使用HTTPS协议和自签名安全证书保护您的Web浏览器和moOde之间的通信通道。
						由于正在使用自签名证书，您的浏览器将显示一条警告，提示该站点无法被验证为可信网站。
						这些容易理解 <a class="target-blank-link" href="https://it.nmu.edu/docs/adding-security-exception-your-browser" target="_blank">说明</a>
						解释如何抑制Chrome、Edge、Firefox和Safari浏览器的警告。
					</span>
				</div>
			</div>
		</div>

		<div class="control-group $_feat_localui">
			<legend>本地显示</legend>
			<label class="control-label">显示</label>
			<div class="controls">
				<div class="toggle">
					<label class="toggle-radio" for="toggle-localui-2">开</label>$_select[localui_on]
					<label class="toggle-radio" for="toggle-localui-1">关</label>$_select[localui_off]
				</div>
                <button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_localui" value="novalue">设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-localui" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-localui" class="config-help-info">
					在本地连接的显示器上显示moOde UI。
                </span>
            </div>

			<label class="control-label">播放唤醒</label>
			<div class="controls">
				<div class="toggle">
					<label class="toggle-radio" for="toggle-wake_display-2">开</label>$_select[wake_display_on]
					<label class="toggle-radio" for="toggle-wake_display-1">关</label>$_select[wake_display_off]
				</div>
                <button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_wake_display" value="novalue" $_localui_btn_disable>设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info_wake_display" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info_wake_display" class="config-help-info">
					当音频开始播放时唤醒显示器。
                </span>
            </div>

			<label class="control-label">鼠标指针</label>
			<div class="controls">
				<div class="toggle">
					<label class="toggle-radio" for="toggle-touchscn-2">开</label>$_select[touchscn_on]
					<label class="toggle-radio" for="toggle-touchscn-1">关</label>$_select[touchscn_off]
				</div>
                <button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_touchscn" value="novalue" $_localui_btn_disable>设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-touchscn" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-touchscn" class="config-help-info">
					这可防止光标出现在显示器或触摸屏上
                </span>
            </div>

			<label class="control-label" for="scnblank">屏幕空白</label>
			<div class="controls">
				<select id="scnblank" class="config-select-large" name="scnblank">
					$_select[scnblank]
				</select>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_scnblank" value="novalue" $_localui_btn_disable>设置</button>
			</div>

			<label class="control-label" for="scnbrightness">屏幕亮度</label>
			<div class="controls">
            	<input class="config-input-large" type="number" maxlength="3" min="0" max="255" id="scnbrightness" name="scnbrightness" value="$_select[scnbrightness]">
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_scnbrightness" value="novalue" $_localui_btn_disable>设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-brightness" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-brightness" class="config-help-info">
					7英寸触摸屏的背光亮度。值为0 - 255。
                </span>
			</div>

			<label class="control-label" for="pixel-aspect-ratio">像素纵横比</label>
			<div class="controls">
				<select id="pixel-aspect-ratio" class="config-select-large" name="pixel_aspect_ratio">
					$_select[pixel_aspect_ratio]
				</select>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_pixel_aspect_ratio" value="novalue" $_localui_btn_disable>设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info_pixel_aspect_ratio" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info_pixel_aspect_ratio" class="config-help-info">
					7英寸Pi触控的矩形(默认)或方形像素。
                </span>
			</div>

			<label class="control-label" for="scnrotate">旋转屏幕</label>
			<div class="controls">
				<select id="scnrotate" class="config-select-large" name="scnrotate">
					$_select[scnrotate]
				</select>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_scnrotate" value="novalue" $_localui_btn_disable>设置</button>
			</div>

			<label class="control-label">弹出键盘</label>
			<div class="controls">
				<div class="toggle">
					<label class="toggle-radio" for="toggle-on-screen-kbd-2">开</label>$_select[on_screen_kbd_on]
					<label class="toggle-radio" for="toggle-on-screen-kbd-1">关</label>$_select[on_screen_kbd_off]
				</div>
                <button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_on_screen_kbd" value="novalue" $_localui_btn_disable>设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-on-screen-kbd" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-on-screen-kbd" class="config-help-info">
					屏幕弹出键盘。 @Nutul
                </span>
            </div>

			<div class="controls">
				<button class="btn btn-primary btn-medium config-btn btn-submit" type="submit" name="update_toggle_coverview" value="novalue" $_localui_btn_disable>切换</button>
				<span class="config-btn-after">封面视图</span>
				<span class="config-help-static">
					当前切换状态: $_coverview_onoff
				</span>
			</div>

			<div class="controls">
				<a data-toggle="modal" href="#restart-localui" $_localui_link_disable><button class="btn btn-medium btn-primary config-btn" $_localui_btn_disable>重启</button></a>
				<span class="config-btn-after">本地用户界面</span>
				<span class="config-help-static">
					重启会清除chromium浏览器缓存。
				</span>
			</div>
		</div>

		<div class="control-group">
			<legend>文件共享</legend>
			<label class="control-label">SMB (Samba)</label>
			<div class="controls">
				<div class="toggle">
					<label class="toggle-radio" for="toggle-fs-smb-2">开</label>$_select[fs_smb_on]
					<label class="toggle-radio" for="toggle-fs-smb-1">关</label>$_select[fs_smb_off]
				</div>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_fs_smb" value="novalue">设置</button>
				<span class="config-help-static">
					服务器消息块(SMB)允许通过网络与Windows、Mac和Linux客户端共享文件。<br>
					会自动为NAS、SDCard、播放列表和USB存储设备创建共享。
                </span>
			</div>

			<div class="config-horiz-rule"></div>

			<label class="control-label">NFS</label>
			<div class="controls">
				<div class="toggle">
					<label class="toggle-radio" for="toggle-fs-nfs-2">开</label>$_select[fs_nfs_on]
					<label class="toggle-radio" for="toggle-fs-nfs-1">关</label>$_select[fs_nfs_off]
				</div>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_fs_nfs" value="novalue">设置</button>
				<span class="config-help-static">
					网络文件共享(NFS)允许通过网络与Linux客户端共享文件。<br>
					<b>Exports: </b> 挂载到/media的USB存储设备会自动维护在/etc/exports中。其他存储位置必须手动添加。<br>
					<b>Formats: </b> 仅推荐Ext4和Fat32 (VFAT)文件系统格式。
				</span>
			</div>

			<label class="control-label" for="fs-nfs-access">访问</label>
			<div class="controls">
				<input id="fs-nfs-access" class="input-large config-input-large" type="text" name="fs_nfs_access" value="$_select[fs_nfs_access]" placeholder="IP address or subnet">
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_fs_nfs_access" value="novalue">设置</button>
				<span class="config-help-static">
					指定允许访问NFS导出的客户端IP或子网地址。<br>
					使用无类域间路由(CIDR)符号(/24表示子网，/32表示IP地址)。<br>
					这个子网是: <b>$_this_subnet</b>
				</span>
			</div>

			<label class="control-label" for="fs-nfs-options">选项</label>
			<div class="controls">
				<input id="fs-nfs-options" class="input-large config-input-large" type="text" name="fs_nfs_options" value="$_select[fs_nfs_options]" required>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_fs_nfs_options" value="novalue">设置</button>
				<span class="config-help-static">
					这些选项决定授予连接的客户端的权限。<br>
					默认选项: rw,sync,no_subtree_check,no_root_squash
				</span>
			</div>
		</div>

		<div class="control-group">
			<legend>外围设备</legend>
			<label class="control-label">LCD更新程序</label>
			<div class="controls">
				<div class="toggle">
					<label class="toggle-radio" for="toggle-lcdup-2">开</label>$_select[lcdup_on]
					<label class="toggle-radio" for="toggle-lcdup-1">关</label>$_select[lcdup_off]
				</div>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_lcdup" value="novalue">设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-lcdup" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-lcdup" class="config-help-info">
					每当用户界面状态改变时，LCD更新引擎运行lcd-updater.py脚本。<br>
					存根lcd-updater.py脚本位于/var/local/www/commandw/目录中。
                </span>
			</div>

			<div class="$_feat_gpio">
				<label class="control-label">GPIO按钮</label>
				<div class="controls">
					<div class="toggle">
						<label class="toggle-radio" for="toggle-gpio_svc-2">开</label>$_select[gpio_svc_on]
						<label class="toggle-radio" for="toggle-gpio_svc-1">关</label>$_select[gpio_svc_off]
					</div>
					<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_gpio_svc" value="novalue">设置</button>
					<a aria-label="Help" class="config-info-toggle" data-cmd="info-gpio-svc" href="#notarget"><i class="fas fa-info-circle"></i></a>
					<span id="info-gpio-svc" class="config-help-info">
						将附加的硬件按钮映射到MPD播放或其他命令。 By @Cyanoazimin.
                    </span>
				</div>

				<div class="controls">
					<a href="gpio-config.php"><button class="btn btn-medium btn-primary config-btn">编辑</button></a>
					<span class="config-btn-after">GPIO引脚映射</span>
				</div>
			</div>
		</div>

		<div class="control-group">
			<legend>安全</legend>
			<label class="control-label">网页SSH</label>
			<div class="controls">
				<div class="toggle">
					<label class="toggle-radio" for="toggle-shellinabox-2">开</label>$_select[shellinabox_on]
					<label class="toggle-radio" for="toggle-shellinabox-1">关</label>$_select[shellinabox_off]
				</div>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_shellinabox" value="novalue" $_webssh_set_disable>设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-shellinabox" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-shellinabox" class="config-help-info">
					基于Web的安全Shell终端。 使用Shellinabox by Markus Gutschk 和 Luka Krajger.
                </span>
			</div>

			<div class="controls">
				<a href="http://$_select[hostip]:4200" class="btn btn-medium btn-primary config-btn target-blank-link" target="_blank" $_webssh_link_disable $_webssh_open_disable>打开</a>
				<span class="config-btn-after">SSH终端</span>
			</div>
		</div>

		<div class="control-group">
			<legend>备份/恢复</legend>
			<label class="control-label">备份系统</label>
			<div class="controls">
				<a href="bkp-config.php?action=backup"><button class="btn btn-medium btn-primary config-btn">备份</button></a>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-backup-system" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-backup-system" class="config-help-info">
					备份配置设置和首选项、电台、播放列表和CamillaDSP配置。
                </span>
			</div>

			<label class="control-label">恢复系统</label>
			<div class="controls">
				<a href="bkp-config.php?action=restore"><button class="btn btn-medium btn-primary config-btn">恢复</button></a>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-restore-system" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-restore-system" class="config-help-info">
					恢复配置设置和首选项、电台、播放列表和CamillaDSP配置。
                </span>
			</div>
		</div>

		<div class="control-group">
			<legend>日志</legend>
			<label class="control-label">启动日志</label>
			<div class="controls">
				<button class="btn btn-medium btn-primary config-btn" type="submit" name="download_logs" value="1">下载</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-download-logs" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-download-logs" class="config-help-info">
					下载moOde启动日志:/var/log/moode.log
                </span>
			</div>

			<label class="control-label">系统日志</label>
			<div class="controls">
				<a href="#clear-syslogs" data-toggle="modal"><button class="btn btn-medium btn-primary config-btn">清除</button></a>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-clear-syslogs" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-clear-syslogs" class="config-help-info">
					清除各种系统日志文件。
					注意维护任务会定期清除日志。
                </span>
			</div>

			<label class="control-label">播放历史日志</label>
			<div class="controls">
				<a href="#clear-playbackhist" data-toggle="modal"><button class="btn btn-medium btn-primary config-btn">清除</button></a>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-clear-playhistory" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-clear-playhistory" class="config-help-info">
					清除播放历史日志。由于日志会随着时间的推移而增长，因此请定期执行此任务。
                </span>
			</div>

			<div class="config-horiz-rule"></div>

			<label class="control-label">调试日志记录</label>
			<div class="controls">
				<div class="toggle">
					<label class="toggle-radio" for="toggle-debuglog-2">开</label>$_select[debuglog_on]
					<label class="toggle-radio" for="toggle-debuglog-1">关</label>$_select[debuglog_off]
				</div>
				<button class="btn btn-primary btn-small config-btn-set btn-submit" type="submit" name="update_debuglog" value="novalue">设置</button>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-debuglog" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-debuglog" class="config-help-info">
					记录调试信息<br>
					- <b>Moode启动日志: </b>/var/log/moode.log<br>
					- <b>装载监视器日志: </b>/var/log/moode_mountmon.log
                </span>
			</div>
		</div>
	</form>
</div>
</div>

<form class="form-horizontal" method="post">
	<div id="view-pkgcontent" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="view-pkgcontent-label" aria-hidden="true">
		<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
			<h3 id="view-pkgcontent-label">包内容</h3>
		</div>
		<div class="modal-body">
			$_pkg_description
			$_pkg_relnotes
		</div>
		<div class="modal-footer">
			<button class="btn singleton" data-dismiss="modal" aria-hidden="true">关闭</button>
		</div>
	</div>
</form>

<form class="form-horizontal" method="post">
	<div id="enable-usbboot" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="enable-usbboot-label" aria-hidden="true">
		<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
			<h3>启用USB启动？</h3>
		</div>
		<div class="modal-body"></div>
		<div class="modal-footer">
			<button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
			<button class="btn btn-primary btn-submit" type="submit" name="update_usbboot" value="novalue">确认</button>
		</div>
	</div>
</form>

<form class="form-horizontal" method="post">
	<div id="restart-localui" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="restart-localui-label" aria-hidden="true">
		<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
			<h3>重启本地UI？</h3>
		</div>
		<div class="modal-body"></div>
		<div class="modal-footer">
			<button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
			<button class="btn btn-primary btn-submit" type="submit" name="update_restart_localui" value="novalue">确认</button>
		</div>
	</div>
</form>

<form class="form-horizontal" method="post">
	<div id="clear-playbackhist" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="clear-playbackhist-label" aria-hidden="true">
		<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
			<h3>清除播放历史？</h3>
		</div>
		<div class="modal-body"></div>
		<div class="modal-footer">
			<button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
			<button class="btn btn-primary btn-submit" type="submit" name="update_clear_playhistory" value="novalue">确认</button>
		</div>
	</div>
</form>

<form class="form-horizontal" method="post">
	<div id="clear-syslogs" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="clear-syslogs-label" aria-hidden="true">
		<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
			<h3>清除系统日志？</h3>
		</div>
		<div class="modal-body"></div>
		<div class="modal-footer">
			<button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
			<button class="btn btn-primary btn-submit" type="submit" name="update_clear_syslogs" value="novalue">确认</button>
		</div>
	</div>
</form>
